package com.baike.feign;

import com.baike.data.Result;
import com.baike.em.ConstantEnum;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "baike-education-lesson-service")
public interface TbLessonFeign {
    // 根据标签id 删除 关联
    @DeleteMapping("/lessonLabelController/byLabelStr")
    Result<ConstantEnum> delLessonLabelByLabelStr(@RequestParam("labelIdStr")String labelIdStr);
    // 根据课程id 和 标签id 修改 关联表数据
    @PutMapping("/lessonLabelController/putLessonLabel")
    Result<ConstantEnum> putLessonLabel(@RequestParam("lessonId")Long lessonId,@RequestParam("labelIdStr")String labelIdStr);
    // 根据 课程 id 删除关联表信息
    @DeleteMapping("/lessonLabelController/byLessonId")
    Result<ConstantEnum> delLessonLabelByLessonId(@RequestParam("LessonId")Long[] LessonId);
}
